package ro.msg.quiz.repository;

/**
 * @author Blaj this is an enum which return the class type 1 for single choice
 *         question 2 for multiple choice question 3 for text question
 * 
 */
public enum ClassType {
	SINGLE_CHOICE_QUESTION(1), MULTIPLE_CHOICE_QUESTION(2), TEXT_QUESTION(3);

	private int code;

	/**
	 * constructior which takes the code of the class
	 * 
	 * @param c
	 */
	private ClassType(int c) {
		code = c;
	}

	/**
	 * @return the code of the class
	 */
	public int getCode() {
		return code;
	}
}
